import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Cart from '@/components/Cart'
import Person from '@/components/Person'
import Goods from '@/components/Goods'
import GoodsSize from '@/components/GoodsSize'
import Order from '@/components/Order'
import OrderList from '@/components/OrderList'
import Address from '@/components/Address'
import AddressAdd from '@/components/AddressAdd'
import AddressEdit from '@/components/AddressEdit'
import Category from '@/components/Category'
import NoUser from '@/components/NoUser'
import Login from '@/components/Login'
import MagappPay from '@/components/MagappPay'

Vue.use(Router);

export default new Router({
  routes: [
    {path: '/NoUser', name: 'NoUser', component: NoUser},// *
    {path: '/Login', name: 'Login', component: Login},// *
    {path: '/', name: 'Home', component: Home}, // *
    {path: '/Cart', name: 'Cart', component: Cart},// *
    {path: '/Person', name: 'Person', component: Person},// *
    {path: '/Goods', name: 'Goods', component: Goods},// *
    {path: '/GoodsSize', name: 'GoodsSize', component: GoodsSize},// *
    {path: '/Order', name: 'Order', component: Order},// *
    {path: '/OrderList', name: 'OrderList', component: OrderList},// *
    {path: '/Address', name: 'Address', component: Address},// *
    {path: '/AddressAdd', name: 'AddressAdd', component: AddressAdd},// *
    {path: '/AddressEdit', name: 'AddressEdit', component: AddressEdit},// *
    {path: '/Category', name: 'Category', component: Category},// *
    {path: '/MagappPay', name: 'MagappPay', component: MagappPay},// *
  ]
})
